using MediatR;
using UniversalAdmin.Domain.Entities.App;
using UniversalAdmin.Domain.Common;

namespace UniversalAdmin.Domain.DomainEvents;

public class FileCreatedEvent : IDomainEvent, INotification
{
    public AppFile File { get; }
    public DateTime OccurredOn { get; }
    public FileCreatedEvent(AppFile file)
    {
        File = file;
        OccurredOn = DateTime.UtcNow;
    }
}
public class FileDeletedEvent : IDomainEvent, INotification
{
    public AppFile File { get; }
    public DateTime OccurredOn { get; }
    public FileDeletedEvent(AppFile file)
    {
        File = file;
        OccurredOn = DateTime.UtcNow;
    }
} 